import request from '../utils/request'

export function create(params) {
  return request({
    url: '/member/giftCard/create',
    method: 'post',
    params: params
  })
}

export function update(params) {
  return request({
    url: '/member/giftCard/update',
    method: 'post',
    params: params
  })
}
export function receiver(params) {
  return request({
    url: '/member/touristCard/receiver',
    method: 'post',
    params: params
  })
}

export function list(params) {
  return request({
    url: '/member/touristCard/list',
    method: 'get',
    params:params
  })
}

export function find(id) {
  return request({
    url: '/member/touristCard/find/' + id,
    method: 'get'
  })
}

export function usedCard(data) {
  return request({
    url: '/member/touristCard/usedCard',
    method: 'post',
    data:data
  })
}
export function validCard(params) {
  return request({
    url: '/member/touristCard/validCard',
    method: 'post',
    params:params
  })
}
// export function summary() {
//   return request({
//     url: '/member/touristCard/summary',
//     method: 'post',
//   })
// }